package com.example.demo.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource(value = {"classpath:config/address.properties"}, encoding = "UTF-8")
@ConfigurationProperties(prefix = "address")
@Data
public class AddressProps {


    private String province;

    private String city;

    private String county;

}
